package com.zz.controller;

import com.alibaba.fastjson.JSONObject;
import com.zz.service.EsignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

// e签宝接口
@Slf4j
@RestController
@RequestMapping("/esign")
public class EsignController {

    @Autowired
    EsignService esignService;


    @PostMapping("/getAccount")
    public String getAccount(@RequestBody JSONObject jsonObject) {
        String accountId = jsonObject.getString("accountId");
        return esignService.getAccount(accountId);
    }


}
